package alo.p3.work;

import alo.p3.ListNode;
//从表尾开始输出链表
public class PrintListFromEnd {

    //使用递归
     void PrintListFromEnd(ListNode headNode){
        if (headNode==null)
            return;
        PrintListFromEnd(headNode.getNext());
        System.out.println(headNode.getData());
    }
}
